﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>hu</title>
    <link href="~/Content/jquery-easyui-1.5.2/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/Content/jquery-easyui-1.5.2/themes/icon.css" rel="stylesheet" />
    <link href="~/Content/jquery-easyui-1.5.2/demo/demo.css" rel="stylesheet" />


    <script src="~/Content/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script src="~/Content/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    
</head>
<body>
    
    <div id="cc" class="easyui-layout" style="width:100%;height:800px;">
        <div data-options="region:'north'" style="height:100px"></div>
        <div data-options="region:'south',split:true" style="height:50px;"></div>
        <div data-options="region:'east',split:true" title="East" style="width:100px;"></div>
        <div data-options="region:'west',split:true" title="West" style="width:100px;"></div>
        <div data-options="region:'center',title:'Center'">
            <div class="easyui-panel" title="New Topic" style="width:100%;padding:30px 60px;">
                <table class="easyui-datagrid" id="tabl" style="width:550px;height:300px;" pagination="true">
                    <thead>
                        <tr>

                            <th field="id" width="60">策略号</th>
                            <th field="name" width="60">规则号</th>
                        </tr>
                    </thead>
                </table>
                <div style="text-align:center;padding:5px 0">
                    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">Submit</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">Clear</a>
                </div>
            </div>
        </div>

    </div>
    
    <table id="dg" class="easyui-datagrid" style="width:550px;height:300px;" pagination="true">

        <thead>
            <tr>
                <th field="MessageId" width="60">策略号</th>
                <th field="RuleId" width="60">规则号</th>
                <th field="RuleType" width="60" ">规则类型</th>
                <th field="RuleStartValue" width="180">规则起始值</th>
                <th field="RuleEndValue" width="180">规则结束值</th>
            </tr>
        </thead>
    </table>
  
    <div style="margin-bottom:20px">
        <input class="easyui-filebox" style="width:100%" data-options="label:'Name:',required:true">
    </div>
</body>
</html>
<script>
    hh();
    function hh()
    {
        alert("111")
        $.ajax({
            url: "/Photos/dd",
            dataType: "json",
            type: "post",
            success:function(obj){
                $("#tabl").datagrid('loadData', { total: 20, rows: obj })
            }
            
        })
    }
    $("#tabl").datagrid({
        toolbar: [{
            id: 'btnAdd',
            text: "添加",
            iconCls: 'icon-add',
            handler: function () {
                $("#winAdd").window("open");
            }
        }, {
            id: 'btnEdit',
            text: "修改",
            iconCls: 'icon-edit',
            handler: function () {
                alert("修改");
            }
        }],
    })
    
</script>